package com.designpatterns.creational.simpleFactory;


import com.designpatterns.utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
        /**
         * 初步使用
         */
//        Chart histogram = ChartFactory.getChart("histogram");
//        histogram.display();
        String chartType = XMLUtil.getChartType();
        Chart chart = ChartFactory.getChart(chartType);
        chart.display();

    }
}
